import time

from selenium.webdriver.common.by import By

from project_page.base_page import BasePage
from project_page.wework_page import WeworkPage


class ContactPage(WeworkPage):
    def goto_add_member_page(self):
        pass
    def get_member_page_list(self):
        """
        获取成员列表
        :return:
        """
        ele_list = self.finds(By.CSS_SELECTOR, ".member_colRight_memberTable_tr td:nth-child(2)")
        #把列表元素转换成名称列表
        member_list = [ele.text for ele in ele_list]
        # for i in ele_list:
        #     name_list.append(i.text) 直接写成列表推导式
        return  member_list